home *** CD-ROM | disk | FTP | other *** search
- Path: news.ov.com!news
- From: glenn@ov.com (Fletcher.Glenn@ov.com)
- Newsgroups: comp.lang.c
- Subject: Re: Reading child pgm's stdout?
- Date: 7 Feb 1996 22:05:58 GMT
- Organization: OpenVision
- Message-ID: <4fb7o7$ouo@spanky.pls.ov.com>
- References: <clintDMCyH6.Ky3@netcom.com>
- Reply-To: glenn@ov.com
- NNTP-Posting-Host: foghorn.pls.ov.com
-
- In article Ky3@netcom.com, clint@netcom.com (Clinton Carr) writes:
- >Can someone provide a snippet of code that reads the
- >stdout of a child's program? If I use Perl, then the
- >following statement does it for me.
- >
- >$answer = system("/usr/local/bin/childpgm.pl");
- >
- >The above childpgm.pl is writing to stdout.
- >
- >thanks
-
-
- You really want to investigate the popen() function.
-
- Fletcher.Glenn@ov.com
-
-
-